#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtGui>
#include <QtCore>
#include <QString>
#include <QFile>
#include <QFileDialog>

#include "qrencode.h"


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    void makeqrcode();
    int a;
    int shape;
    double height;
    double wqr;
    QString qrstring;
    QRcode* qrcode;
    QRecLevel qrlevel;
    QString filename;

protected:
    void paintEvent(QPaintEvent *);

private slots:
    void on_actionInsert_String_triggered();
    void on_lineEdit_textChanged(const QString &arg1);

    void on_comboBox_currentIndexChanged(int index);
    void on_comboBox_2_currentIndexChanged(int index);
    void on_lineEdit_2_textChanged(const QString &arg1);
    void on_lineEdit_3_textChanged(const QString &arg1);
};

#endif // MAINWINDOW_H
